package com.neuedu.shop.pojo;

import java.io.Serializable;
import java.sql.Timestamp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ZhangHongRui
 *
 *         2019年12月31日
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Product implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;
	private String name;
	private String descr;
	private double normalprice;
	private double memberprice;
	private String imgPath;
	private Timestamp pdate;// 商品上架日期

	private int categoryid;

	private Category category;

	public Product(String name, String descr, double normalprice, String imgPath, Category category) {
		this.name = name;
		this.descr = descr;
		this.normalprice = normalprice;
		this.imgPath = imgPath;
		this.category = category;
	}

}
